@import '../../style/theme.scss';
.header {
  padding: 0 30rpx;
  display: flex;
  align-items: center;

  .back-icon {
    width: 18rpx;
    height: 32rpx;
    margin-right: 30rpx;
  }

  .search-input {
    display: flex;
    align-items: center;
    background-color: #f1f1f2;
    width: 435rpx;
    height: 64rpx;
    border-radius: 10rpx;
    padding: 0 18rpx;
    box-sizing: border-box;

    .search-icon {
      width: 50rpx;
      height: 50rpx;
      margin-right: 10rpx;
    }

    input {
      font-size: 24rpx;
      line-height: 24rpx;
      height: 24rpx;
      color: #777777;
      flex-grow: 1;
    }
  }
}

.menu-info {
  padding: 0 30rpx;
  display: flex;
  justify-content: space-between;

  .store-info {
    margin-top: 40rpx;

    .store-name {
      display: flex;
      align-items: center;
      font-size: 32rpx;
      font-weight: 500;
      margin-bottom: 10rpx;

      image {
        margin-left: 8rpx;
        width: 16rpx;
        height: 28rpx;
      }
    }

    .store-location {
      display: flex;
      align-items: center;

      .location-icon {
        width: 22rpx;
        height: 22rpx;
        margin-right: 4rpx;
      }

      .distance-info {
        color: #a6a6a6;
        font-size: 22rpx;
        display: flex;
      }
    }
  }

  .trade-type {
    margin-top: 40rpx;
    width: 102rpx;
    height: 50rpx;
    background-color: #E60012;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 24rpx;
  }
}

.menu {
  margin-top: 38rpx;
  display: grid;
  padding-right: 32rpx;
  grid-template-columns: 160rpx 1fr;
  gap: 20rpx;

  .menu-list {
    height: 1200rpx;

    .list {
      margin-top: 44rpx;

      .section {
        margin-bottom: 42rpx;

        .section-header {
          font-size: 22rpx;
          font-weight: 500;
          margin-bottom: 26rpx;
        }

        .section-list {
          padding: 30rpx;
          .item {
            display: flex;
            margin-bottom: 48rpx;
            width: 100%;
            &:last-child {
              margin-bottom: 0;
            }
            image {
              width: 158rpx;
              height: 158rpx;
              // 不压缩
              flex-shrink: 0;
            }
            .info {
              margin-left: 40rpx;
              display: flex;
              flex-direction: column;
              flex-grow: 1;
              .name {
                font-size: 28rpx;
                font-weight: 500;
              }
              .description {
                font-size: 22rpx;
                color: gray;
              }
              .price {
                margin-top: 54rpx;
                color: $primary-color;
                font-size: 22rpx;
              }
            }
            .add-icon {
              width: 46rpx;
              height: 46rpx;
              background-color: $primary-color;
              border-radius: 23rpx;
              display: flex;
              // 主轴居中
              justify-content: center;
              // 交叉轴对齐
              align-items: center;
              align-self: flex-end;
              image {
                width: 20rpx;
                height: 20rpx;
                margin: 0;
              }
            }
            
          }

        }

      }
    }
  }
}